# Contributor: Mike Banon <mikebdp2@gmail.com>
# Maintainer: Mike Banon <mikebdp2@gmail.com>
pkgname=pinephone-compass
pkgver=0.3.1
pkgrel=0
pkgdesc="GTK3 compass app for the Pine64 Pinephone, supports LIS3MDL and AF8133J magnetometers"
url="https://gitlab.com/lgtrombetta/pinephone-compass"
license="GPL-3.0-or-later"
arch="aarch64"
depends="python3 py3-matplotlib py3-numpy py3-pandas py3-xdg"
makedepends="meson gettext glib-dev"
source="https://gitlab.com/lgtrombetta/pinephone-compass/-/archive/v$pkgver/pinephone-compass-v$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
faaac974727060d5bacdd13b3d59621da7f5dd47b70a11a36e6250041cc37f93146c8b6163b20231b402cce7d42662ef3862d77897c0c74af79b61cb89daa043  pinephone-compass-v0.3.1.tar.gz
"
